/**
 * 输入描述
 * 输入第一行包括一个数据组数t(1 <= t <= 100)
    接下来每行包括两个正整数a,b(1 <= a, b <= 1000)
 * 
输出描述
 * 输出a+b的结果
 * 
 * 输入例子：
2
1 5
10 20
输出例子：
6
30
 */

const rl = require('readline').createInterface({ input: process.stdin });
var iter = rl[Symbol.asyncIterator]();
const readline = async () => (await iter.next()).value;

void (async function () {
    const times = await readline();

    for (let i = 0; i < times; i++) {
        let line = await readline();
        let tokens = line.split(' ');
        let a = parseInt(tokens[0]);
        let b = parseInt(tokens[1]);
        console.log(a + b);
    }
})();
